<%--
  Created by IntelliJ IDEA.
  User: LzhsCp
  Date: 2019/10/21
  Time: 17:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<!--注册表单-->
<div class="form_register" style="position:absolute">
    <form action="/user/add.action" method="post" enctype="multipart/form-data">
        <h1>注册表单</h1>
        <div class="form_item">
            用户名：
            <input type="text" name="username" id="addusername" placeholder="请输入用户名" required>
        </div>
        <div class="form_item">
            密码：
            <input type="password" name="password" id="addpassword" placeholder="请输入密码" required>
        </div>
        <div class="form_item">
            昵称：
            <input type="text" name="nickname" id="nickname" placeholder="请输入昵称" required>
        </div>
        <div class="form_item">
            <label>年龄：</label>
            <input type="text" name="age" id="age" placeholder="请输入年龄" required>
        </div>
        <div class="form_item">
            <label>性别：</label>
            <select id="sex" name="sex">
                <option value="-1">请选择</option>
                <option value="1">男</option>
                <option value="0">女</option>
            </select>
        </div>
        <div class="form_item">
            <label>手机：</label>
            <input type="text" name="mobile" id="phone" placeholder="请输入手机号码" required>
        </div>
        <div class="form_item">
            <label>地址：</label>
            <input type="text" name="address" id="" placeholder="请输入地址" required>
        </div>
        <div class="form_item">
            <label>头像：</label>
            <input type="file" name="pic_path">
        </div>
        <div class="form_item">
            <input type="submit" value="注册"><span>${errormsg}</span>
        </div>
    </form>
</div>
</body>
</html>
